package cn.itcast.contorller.log;

import cn.itcast.base.BaseContorller;
import cn.itcast.service.log.LogService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping(value = "/system/log")
@Controller
public class LogController extends BaseContorller {
    @Autowired
 private LogService logService;
    @RequestMapping(value = "/list",name = "查询所有的日志")
    public String findALLlog(@RequestParam(defaultValue = "1") int pageNum,@RequestParam(defaultValue ="5") int pageSize){
   PageInfo pageInfo = logService.findALLlog(pageNum,pageSize,company_id);
   request.setAttribute("pb",pageInfo);
   return "system/log/log-list";
    }
}
